package com.gec.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

@Data
//TableName("tb_user")
public class User {
    @TableId(value = "user_id")
    private Long id;
    //@TableField(value = "user_name",exist = false) // 数据库不存在的字段
    @TableField(value = "user_name")
    private String name;
    private Integer age;
    private String email;

    //逻辑删除字段
    @TableLogic
    private Integer isDelete;
}